- A mail message has three distinct parts
- The envelope
- Defines who the message is from, who it is to, and where it should be
returned if undeliverable
- Not visible to users
- Part of the SMTP dialog between MTAs
- The headers
- Various bits of information about the message
- Formated as "Label: contents" (with the option of continuation lines)
- Some headers are interesting ("From:", "Date:", "Subject:"), others
much less so ("X-Mailer:", "Message-Id:", "Received:")
- Though "Received:" can be important for debugging or for "email
forensics"
- Sender and recepient(s) may be listed in the header ("From:" and
"To:", respectively), but it's what's in the envelope that really matters
- That's how you can get spam addressed to something like
"[email protected]"
- Your address was in the envelope, and the "To:" header is just bogus
junk
- The body
- The actual content of the message
- Must be plain text
- Binary data (attactments, for example) must be
encoded
- Here are the mail headers from some spam I got. In class, we'll go through
what the lines mean.
From [email protected] Wed Nov 22 05:56:41 2000
Return-Path: <[email protected]>
Received: from localhost (localhost [127.0.0.1])
by localhost.localdomain (8.9.3/8.9.3) with ESMTP id FAA00783
for <geoff@localhost>; Wed, 22 Nov 2000 05:56:41 -0800
From: [email protected]
Received: from mail.moscow.com
by localhost with POP3 (fetchmail-5.3.1)
for geoff@localhost (single-drop); Wed, 22 Nov 2000 05:56:41 -0800 (PST)
Received: by whale.fsr.net (mbox geoff)
(with Cubic Circle's cucipop (v1.31 1998/05/13) Wed Nov 22 05:55:55 2000)
X-From_: [email protected] Thu Nov 16 16:22:33 2000
Received: from search10.sohu.com ([202.108.41.30])
by whale.fsr.net (8.9.3/8.9.3) with ESMTP id QAA85681;
Thu, 16 Nov 2000 16:22:27 -0800 (PST)
(envelope-from [email protected])
Received: by search10.sohu.com id IAA0000013886; Fri, 17 Nov 2000 08:18:48 +0800 (CST)
Message-ID: <[email protected]>
To: <[email protected]>
Subject: BUSINESS OWNER/OPERATOR 15628
Date: Thu, 16 Nov 2000 08:16:19 -0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200